package JLB_Chapter_06;

// code_06_07
public class TransferProperty {
    // 定义成员变量
    int i = 47;

    // 定义成员方法
    public void call() {
        System.out.println("调用call()方法");
        for (int i = 0; i < 3; i++) {
            System.out.print(i + " ");
            if (i == 2) {
                System.out.print("\n");
            }
        }
    }

    // 定义构造方法
    public TransferProperty() {
    }

    public static void main(String[] args) {
        TransferProperty t1 = new TransferProperty();
        TransferProperty t2 = new TransferProperty();
        t2.i = 60;
        System.out.println(t1.i);
        t1.call();
        System.out.println(t2.i);
        t2.call();
    }
}
